
    <div class="grid_4" id="sidebar">

		<div class="widget">
			<a href="http://feeds.feedburner.com/thunderbean">
				<img src="<?php $this->options->themeUrl('images/g17.png');?>">
			</a>
			<form id="search" method="post" action="">
				<div><input class="search_text" type="text" name="s" class="text" /> <input type="submit" class="submit" value="搜索" /></div>
			</form>
		</div>

	    <div class="widget">
			<h3><?php _e('最新文章'); ?></h3>
            <ul>
                <?php $this->widget('Widget_Contents_Post_Recent')
                ->parse('<li><a href="{permalink}">{title}</a></li>'); ?>
            </ul>
	    </div>

	    <div class="widget">
			<h3><?php _e('最近回复'); ?></h3>
            <ul>
            <?php $this->widget('Widget_Comments_Recent')->to($comments); ?>
            <?php while($comments->next()): ?>
                <li><a href="<?php $comments->permalink(); ?>"><?php $comments->author(false); ?></a>: <?php $comments->excerpt(50, '...'); ?></li>
            <?php endwhile; ?>
            </ul>
	    </div>

        <div class="widget">
			<h3><?php _e('分类'); ?></h3>
            <ul>
                <?php $this->widget('Widget_Metas_Category_List')
                ->parse('<li><a href="{permalink}">{name}</a> ({count})</li>'); ?>
            </ul>
		</div>

        <div class="widget">
			<h3><?php _e('归档'); ?></h3>
            <ul>
                <?php $this->widget('Widget_Contents_Post_Date', 'type=month&format=F Y')
                ->parse('<li><a href="{permalink}">{date}</a></li>'); ?>
            </ul>
		</div>

	    <div class="widget">
	        <h3>My Flickr</h3>
	           <style type="text/css">
	            #flickr_badge_wrapper { overflow: hidden; *zoom: 1; width: 170px; }
	            .flickr_badge_image {margin:0 8px 8px 0px; float: left;}
	            .flickr_badge_image img {border: 1px solid #ddd; opacity:.75;}
	            .flickr_badge_image img:hover {border: 1px solid #ccc; opacity: 1;}
	            .flickr_badge_image a {text-decoration: none; border: 0; margin: 0px; width: 75px; height: 75px;}
	        </style>
	        <div id="flickr_badge_wrapper">
	           <script type="text/javascript"
	               src="http://www.flickr.com/badge_code_v2.gne?display=random&count=8&size=s&layout=x&source=user&user=40848389%40N08">
	           </script>
	        </div>
	    </div>

		<style>
		.itweet_widget{
			width:210px;

			/*border:1px solid #3354AA;*/
			margin:0 0 10px 10px;
			padding-bottom:10px;
		}
		.itweet_widget div.header{
			height:40px;
		}
		.itweet_widget .header a{
			float:right;
			margin:6px 30px 0 0;
		}
		.itweet_widget .header h2{
			float:left;
			font-size:19px;
			font-weight:normal;
			line-height:28px;
			/*background:#C5CFED none repeat scroll 0 0;*/
			padding:0 0 0 0px;
			margin:0 0 12px;
		}
		.itweet_widget ul, .itweet_widget li{
			margin:0;
			padding:0;
		}
		.itweet_widget li{
			line-height:20px;
			margin:0;
			padding:0 12px 4px 0;
			list-style-image:none;
			list-style-position:outside;
			list-style-type:none;
		}
		.itweet_widget li p{
			font-size:100%;
			line-height:150%;
			border-bottom:1px dotted #DDDDDD;
			color:#3354AA;
			margin:0.1em 0;
			padding-bottom:5px;
		}
		</style>

		<script type="text/javascript" src="<?php $this->options->themeUrl('js/widget.js');?>">
		({
				//twitter screen name
				'username' 	: 'thunderbean',
				//显示条数 <=20
				'count'		: 5,
				//容器属性
				'container' : {
					'id'		: 'itweet_widget',
					'tagname' 	: 'div',
					'classname' : 'itweet_widget',
					//容器初始html,其中{|$lines|}会被处理之后的status替换
					'html' 		: [
						'<div class="header"><h2>Tweets</h2><a target="_blank" href="https:\/\/twitter.com/thunderbean">follow</a></div>',
						'<ul>{|$lines|}</ul>'
						].join('')

				},
				//每一行status的模板,其中的{|$status|}会用status替换
				'lineTpl'	: '<li><p>{|$status|}</p></li>'
		})
		</script>

		<div class="widget">
			<a target="_blank" href="http://miao.in/">
				<img alt="(MT)" src="http://s1.mt-cdn.net/_images/partnerlogos/mt-120x60-dk__5c83fe2.png"/>
			</a>
			<br/>
			<a target="_blank" href="http://typecho.org/">
				<img alt="typecho" src="http://static.typecho.org/images/logo.png"/>
			</a>
			<br/>
			<a target="_blank" href="http://www.douban.com/people/3486340/">
				<img alt="John.H" src="<?php $this->options->themeUrl('images/gmail.jpg');?>"/>
			</a>
		</div>

    </div><!-- end #sidebar -->
